﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QuanLyCCN.Models;
namespace QuanLyCCN.Controllers
{
    public class ThanhPhoHuyenController : Controller
    {
        //
        // GET: /ThanhPhoHuyen/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Add()
        {
            return View();
        }

       [HttpPost]
        public ActionResult Add(FormCollection fm)
        {   
            District dt = new District();
            dt.maNhanDang = fm["maNhanDang"]; dt.ten = fm["ten"];
            ThanhPhoHuyenModels.Add(dt);
            return RedirectToAction("List");
        }

       public ActionResult List()
       {
           return View();
       }
    }
}
